package ink.teamwork.stock.entity;

import ink.teamwork.base.BaseRecordEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
public class Stock extends BaseRecordEntity {

    private String stockType;
    private String market;
    private String name;
    //1为正常上市，其他为下市、停牌等非交易状态
    private int state;
    //流通股本，万股
    private Double currCapital;
    //四季度净利润（亿元）
    private Double profitFour;
    private String code;
    //总股本，万股
    private Double totalCapital;
    //每股净资产（元）
    private Double mgjzc;
    //拼音
    private String pinyin;
    //上市日期
    @Temporal(TemporalType.TIMESTAMP)
    private Date listingDate;
    @Temporal(TemporalType.TIMESTAMP)
    //股票入平台日期
    private Date ct;

}
